<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<p>{{mag.split("").reverse().join("")}}</p>
			<div v-bind:id="cc" v-bind:class="fou">测试</div>
			<div v-if="type==='a'">a</div>
			<div v-else-if="type==='b'">b</div>
			<div v-else-if="type==='c'">c</div>
			<div v-else>not a\b\c</div>
			<div v-show="ww">就是</div>
			<p>{{age >=18 ? '未成年': '成年'}}</p>
		</div>
		<script>
			var xm=new Vue({
				el:"#app",
				data:{
					mag:"holl",
					cc:'aappid',
					fou:'wsdn',
					type:'a',
					ww:true,
					age:'18'
				}
			})
		</script>
	</body>
</html>